Implement parallel compilation
authorAlex Crichton <alex@alexcrichton.com>
Sun, 29 Jun 2014 04:30:44 +0000 (21:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 30 Jun 2014 23:06:00 +0000 (16:06 -0700)
commit5834a76703c036e7d07bcb8c1da734b709862974
tree02c1fc372908f75c85d6cd489ddc304803952352
parent6d0f457987a181fbc3709ada38912efe0c9c804b
Implement parallel compilation

This commit implements the -j flag in the `cargo_rustc` module, using the
primitives from the previous commits. The default parllelism is `os::num_cpus()`

This change also brings proper freshness propagation instead of the hokey logic
of once something is compiled, "compile everything to the right as well".
src/cargo/lib.rs
src/cargo/ops/cargo_rustc.rs
src/cargo/util/dependency_queue.rs
src/cargo/util/errors.rs